package financial.sharing.center.contract.service;

import com.github.pagehelper.PageInfo;
import financial.sharing.center.contract.model.entity.Contract;

import java.util.List;

/**
 * @ClassName ContractService
 * @Description TODO
 * @Author guoyuhang
 * @ @csdn https://blog.csdn.net/qq_40788718
 * @Date 2021/4/9
 * @Version 1.0
 */
public interface ContractService {

    PageInfo<Contract> selectAllContract(String selectContractName, String selectFirstParty, String selectSecondParty);

    Integer createOneContract(String contractName, Integer contractTypeValue, Integer contractDirectionValue, String firstParty, String secondParty);

    Integer compileOneContract(Contract contract);

    Integer deleteOneContract(Integer id);

    Contract getContract(Integer id);

    List<Contract> getListContract(Integer contractDirectionValue);
}
